<?php
namespace app\admin\event;

/**
 * 清除缓存
 */
class DeleteCache
{
    //添加后
    public function afterInsert($model)
    {
        deleteCache();
    }
    //更新后
    public function afterUpdate($model)
    {
        deleteCache();
    }
    //删除后
    public function afterDelete($model)
    {
        deleteCache();
    }
    //恢复后
    public function afterRestore($model)
    {
        deleteCache();
    }
}
